package com.example.user.dal.dataobject.permission;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.framework.common.enums.CommonStatusEnum;
import com.example.framework.mybatis.core.dataobject.BaseDO;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

@TableName("system_role")
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
public class RoleDO extends BaseDO {

    @TableId(type = IdType.AUTO)
    private Long id;

    private String name;

    /**
     * 角色状态
     * <p>
     * 枚举 {@link CommonStatusEnum}
     */
    private Integer status;

}
